import Vue from 'vue'
import Router from 'vue-router'

/*import HelloWorld from '@/components/HelloWorld'
import TableHtml from "@/components/indexMain/TableHtml";
import Tree from "@/components/tree/Tree";
import Index from "@/components/indexMain/Index";
import Login from "@/components/login/Login";
import PicLib from "@/components/sudoku/mateLib/picLib/PicLib";*/


import IndexStatic from "@/components/indexMain/IndexStatic";
import UserController from "@/components/htmlModal/UserController";
import PoliceController from "@/components/htmlModal/PoliceController";
import SectionController from "@/components/htmlModal/SectionController";
import roleController from "@/components/htmlModal/roleController";
import jurisdictionController from "@/components/htmlModal/jurisdictionController";
import PicLib from "@/components/sudoku/mateLib/PicLib";
import LinkLib from "@/components/sudoku/mateLib/LinkLib";
import menuLinkLib from "@/components/sudoku/menuLib/menuLinkLib";
import menuLib from "@/components/sudoku/menuLib/menuLib";
import programLib from "@/components/sudoku/programLib/programLib";
import previewProgram from "@/components/sudoku/programLib/previewProgram";
import dataObject from "@/components/sudoku/dataObject/dataObject";
import authorityFactor from "@/components/sudoku/authorityFactor/authorityFactor";
import VehicleController from "@/components/resourceController/VehicleController";
import RadioController from "@/components/resourceController/RadioController";
import MonitorController from "@/components/resourceController/MonitorController";
import AppController from "@/components/resourceController/AppController";
import CameraController from "@/components/dotController/CameraController";
import WIFIController from "@/components/dotController/WIFIController";
import PersonnelController from "@/components/dotController/PersonnelController";
import SiteController from "@/components/dotController/SiteController";
import IconController from "@/components/dotController/IconController";
import VenueController from "@/components/dotController/VenueController";
import UnitsController from "@/components/dotController/UnitsController";
import AirportsAndRailwayStationsController from "@/components/dotController/AirportsAndRailwayStationsController";
import DomicileController from "@/components/dotController/DomicileController";
import HeadquartersController from "@/components/dotController/HeadquartersController";
import CircuitController from "@/components/dotController/CircuitController";
import ThreeCircleController from "@/components/dotController/ThreeCircleController";
import TrafficControlLoopController from "@/components/dotController/TrafficControlLoopController";
import OldDotController from "@/components/dotController/OldDotController";
import OldLineController from "@/components/dotController/OldLineController";
import OldFaceController from "@/components/dotController/OldFaceController";
import areaController from "@/components/dotController/areaController";
import Login from "@/components/login/Login";
import pointMapDialog from "@/components/map/pointMapDialog";
import geometriesController from "@/components/map/geometriesController";
import geometries from "@/components/map/geometries/geometries";
import drawModel from "@/components/map/drawModel";
import lineMapDialog from "@/components/map/lineMapDialog";
import CaseResourceController from "@/components/caseController/CaseResourceController";
import CaseListController from "@/components/caseController/CaseListController";
import SpecialistArrController from "@/components/caseController/SpecialistArrController";
import SpeciaListController from "@/components/caseController/SpeciaListController";

//import threeCirclesController from "@/components/map/threeCirclesController";
import addressController from "@/components/WPF/addressController";
import addressAdminController from "@/components/WPF/addressAdminController";
import threeCirclesControllerDev from "@/components/map/threeCirclesControllerDev";
import sealingRingControllerDev from "@/components/map/sealingRingControllerDev";
import popedomDev from "@/components/map/popedomDev"; // 所辖区域测试
import positionManageController from "@/components/WPF/positionManageController";
import sendMSMPageController from "@/components/WPF/sendMSMPageController";
import queryMSMPageController from "@/components/WPF/queryMSMPageController";
// 勤务嵌入名词解释
import explainController from "@/components/WPF/explainController";
// 勤务帮助文档
import helpDocController from "@/components/WPF/helpDocController";
// 日记记录
import loggingWriteController from "@/components/logging/loggingWriteController";
// 重点人黑名单
import keyPersonListController from "@/components/preventController/keyPersonListController";
import keyPersonClassController from "@/components/preventController/keyPersonClassController";
import keyCarConstroller from "@/components/carpersonManage/keyCarConstroller";
import keyPersonConstroller from "@/components/carpersonManage/keyPersonConstroller";
import dictionaryController from "@/components/dictionary/dictionaryController"; // 字典页面
//地图菜单
import mapMenuController from "@/components/dictionary/mapMenuController"; // 字典页面
import dataSourcesController from "@/components/centralPlatform/dataSourcesController" // 中台监控平台-数据源配置
import dataContentDefController from "@/components/centralPlatform/dataContentDefController" // 中台监控平台-数据内容定义
import taskConfigController from "@/components/centralPlatform/taskConfigController" // 中台监控平台-任务配置
import taskMonitorController from "@/components/centralPlatform/taskMonitorController" // 中台监控平台-任务监控
import kafkaDataAccessSituationController from "@/components/centralPlatform/kafkaDataAccessSituationController" // 中台监控平台-kafka数据接入情况


Vue.use(Router);

export default new Router({
  // mode: 'history',
  routes: [

    {
      path:"/",
      name: "IndexStatic",
      component:IndexStatic,
      redirect:"/userController",
      children:[
        {path:"/userController",component:UserController},
        {path:"/policeController",component:PoliceController},
        {path:"/sectionController",component:SectionController},
        {path:"/roleController",component:roleController},
        {path:"/jurisdictionController",component:jurisdictionController},
        {path:"/linkLib",component:LinkLib},//素材库 --> 链接库
        {path:"/picLib",component: PicLib},  //素材库 --> 图片库
        {path:"/menuLinkLib",name: 'menuLinkLib', component: menuLinkLib},  //公用页面
        {path:"/menuLib",name: 'menuLib', component: menuLib},  //菜单库
        {path:"/programLib",name: 'programLib',component: programLib},  //方案库
        {path:"/previewProgram",name: 'previewProgram',component: previewProgram},  //宫格预览
        {path:"/dataObject",component: dataObject},  //数据权限
        {path:"/authorityFactor",component: authorityFactor},  //权限因子
        {path:"/VehicleController",component: VehicleController},  //警车管理
        {path:"/RadioController",component: RadioController},  //手台管理
        {path:"/MonitorController",component: MonitorController},  //单兵管理
        {path:"/AppController",component: AppController},  //警务通管理

        {path:"/pointMapDialog",component: pointMapDialog},  //
        {path:"/geometriesController",component: geometriesController},  //
        {path:"/geometries",component: geometries},  //
        {path:"/drawModel",component: drawModel},  //

        {path:"/CameraController",component: CameraController},  //摄像头管理
        {path:"/WIFIController",component: WIFIController},  //wifi管理
        {path:"/PersonnelController",component: PersonnelController},  //人员流动管理
        {path:"/SiteController",component: SiteController},  //场所管理

        {path:"/lineMapDialog",component: lineMapDialog},  //

        {path:"/IconController",component: IconController},  //图标管理
        {path:"/VenueController",component: VenueController},  //场馆管理

        {path:"/ThreeCircleController",component: ThreeCircleController},  // 三圈

        {path:"/UnitsController",component: UnitsController},  //党政机关
        {path:"/AirportsAndRailwayStationsController",component: AirportsAndRailwayStationsController},  //一场四站

        {path:"/addressController",component: addressController},  // 通讯录wpf页面
        {path:"/addressAdminController",component: addressAdminController},  // 通讯录后天管理页面

        {path:"/DomicileController",component: DomicileController},  //住地
        {path:"/HeadquartersController",component: HeadquartersController},  //指挥所
        {path:"/CircuitController",component: CircuitController},  //安保线路

        {path:"/threeCirclesControllerDev",component: threeCirclesControllerDev},  // 三圈测试
        {path:"/sealingRingControllerDev",component: sealingRingControllerDev},  // 封控圈测试
        {path:"/popedomDev",component: popedomDev},  // 所辖区域测试



        {path:"/ThreeCircleController",component: ThreeCircleController},  //三圈
        {path:"/TrafficControlLoopController",component: TrafficControlLoopController},  //封控圈
        {path:"/OldDotController",component: OldDotController},  //老系统 点资源管理
        {path:"/OldLineController",component: OldLineController},  //老系统 线资源管理
        {path:"/OldFaceController",component: OldFaceController},  //老系统 面资源管理

        {path:"/ThreeCircleController",component: ThreeCircleController},  //安保线路
        {path:"/positionManageController",component: positionManageController},  // 职位管理
        {path:"/sendMSMPageController",component: sendMSMPageController},  //发送短信页面
        {path:"/queryMSMPageController",component: queryMSMPageController},  //查询短信历史页面
        {path:"/explainController",component: explainController},  // 勤务名词解释
        {path:"/helpDocController",component: helpDocController},  // 勤务帮助文档
        {path:"/loggingWriteController",component: loggingWriteController},  //日记记录
        {path:"/keyPersonListController",component: keyPersonListController},  //重点人黑名单
        {path:"/keyPersonClassController",component: keyPersonClassController},  //重点人黑名单类型控制
        {path:"/keyCarConstroller",component: keyCarConstroller},  //车辆管控
        {path:"/keyPersonConstroller",component: keyPersonConstroller},  //人员管控
        {path:"/areaController",component: areaController},  //所属辖区
        {path:"/dictionaryController",component: dictionaryController},  // 字典
        {path:"/CaseResourceController",component: CaseResourceController},  //预案资源管理
        {path:"/CaseListController",component: CaseListController},  //预案管理
        {path:"/mapMenuController",component: mapMenuController},  //地图菜单
        {path:"/dataSourcesController",component: dataSourcesController},  //数据源配置
        {path:"/dataContentDefController",component: dataContentDefController},  // 数据内容定义
        {path:"/taskConfigController",component: taskConfigController},  // 任务配置
        {path:"/taskMonitorController",component: taskMonitorController},  // 任务监控
        {path:"/kafkaDataAccessSituationController",component: kafkaDataAccessSituationController},  // kakfa数据接入情况
        {path:"/SpecialistArrController",component: SpecialistArrController},  //专家组
        {path:"/SpeciaListController",component: SpeciaListController},  //专家
      ]
    },
    {path:"/userControl1",component:UserController},
    {path:"/login",component:Login},
    /*{
      path: '/',
      name: 'TableHtml',
      component: TableHtml
    },
    {
      path: '/tree',
      name: 'Tree',
      component: Tree
    }*/

    /*{灵活系统预留
      path:"/",
      component:Index,
      redirect:'/tree',
      children:[
        {path:"/tree",component:Tree},
        {path:"/tableHtml",component:TableHtml},
        {path:"/UserControl",component:UserControl}
      ]
    },{
      path:"/login",
      component:Login
    },*/
    // 宫格管理系统
    // {
    //   path:"/gongge",
    //   redirect:'/tree',
    //   children:[
    //     {path:"/sudoku/mateLib/linkLib",component:LinkLib},//素材库 --> 链接库
    //     {path:"/sudoku/mateLib/picLib",component: PicLib},  //素材库 --> 图片库
    //     {path:"/sudoku/menuLib/menuLinkLib",component: menuLinkLib}  //菜单库
    //   ]
    // },{
    //   path:"/login",
    //   component:Login
    // }
  ]
})
